import { Column, Model, Table } from 'sequelize-typescript';
import { DataTypes } from 'sequelize';

@Table({ tableName: 'user_info', timestamps: false })
export class UserModel extends Model {
  @Column({ type: DataTypes.STRING, field: 'username' })
  username!: string;

  @Column({ type: DataTypes.STRING, field: 'real_name' })
  realName!: string;

  @Column({ type: DataTypes.STRING, field: 'password' })
  password!: string;

  @Column({ type: DataTypes.TINYINT, field: 'status' })
  status!: number;
}
